package com.ljy.my_study.book.tom.软件架构设计原则.单一职责原则.one;

public class Course {

    public static void main(String[] args) {
        Course course=new Course();
        course.study("直播课");
        course.study("录播课");
    }

    public void study(String courseName){
        if("直播课".equals(courseName)){
            System.out.println(courseName+" 不能快进。");
        }else{
            System.out.println(courseName+" 可以反复回看。");
        }
    }
}
